/** 
Copyright (c) 2010, Sheikh Abdul Wahid Ahmed
Details @ http://extremecodeworld.codeplex.com/license
**/

using System;
using CodeGenerator.Managers; 
using EXtremecode.Utils;
namespace CodeGenerator
{
	/// <summary>
	/// Summary description for temp.
	/// </summary>
	public class temp
	{
		public temp()
		{
			
			//Entity
			Definitions.Entity entity = 
				RepositoryManager.Instance.ActiveEntity;
			RepositoryManager.Instance.Entities; 
			string className=  StringProcessor.Class(entity.Name);
		    string entityCaption = StringProcessor.Caption(entity.Name);
			string entityConstant = StringProcessor.ConstantNStatic(entity.Name);
			string entityVariable = StringProcessor.Variable(entity.Name);
			string tableName=entity.TableName; 
			string viewName=entity.ViewName; 
			Definitions.Entity.Relation relation;
   			entity.Parents 
			for(int i=0; i<relation.NativeKey.Length;  i++)
			{
					relation.ReferencedKey[0].Name; 
					relation.ReferencedEntityName 
			}
			
			//EntityField
			Definitions.Entity.Field entityField;
			string entityFieldCaption = StringProcessor.Caption(entityField.Name);
			string property=  StringProcessor.Property(entityField.Name);
			string entityFieldConstant = StringProcessor.ConstantNStatic(entity.Name);
			string dbParameter = StringProcessor.DBParameter(entityField.Name);
			string entityFieldVariable = StringProcessor.Variable(entityField.Name);
			bool isNative=entityField.IsNative;
			bool isRange=entityField.IsRange; 
			string cSharpKeywordDataType=FreeHash.CSharpType[entityField.DataType]; 
			string cSharpFrameworkDataType=FreeHash.CSharpSystemType[entityField.DataType]; 
			

		
		}
	}
}
